package cn.com.api.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_discover_cate;
import cn.com.api.mapper.ApiU_discover_cateMapper;
import cn.com.api.service.ApiU_discover_cateService;
import cn.com.api.service.impl.base.U_discover_cateServiceImplBase;

/**
 * 
 **/
@Service
public class ApiU_discover_cateServiceImpl extends U_discover_cateServiceImplBase implements ApiU_discover_cateService {
	@Autowired
	private ApiU_discover_cateMapper apiU_discover_cateMapper;

	// 新增对象后返回记录ID
	public int U_discover_cateInsertion(ApiU_discover_cate u_discover_cate) {
		return this.apiU_discover_cateMapper.U_discover_cateInsertion(u_discover_cate);
	}

	public List<ApiU_discover_cate> findU_discover_catesByMap(Map map) {
		return this.apiU_discover_cateMapper.findU_discover_catesByMap(map);
	}
	
	public List<ApiU_discover_cate> findU_discover_byType(Integer type) {
		return this.apiU_discover_cateMapper.findU_discover_cates_by_type(type);
	}

	public List<ApiU_discover_cate> findAllU_discover() {
		return this.apiU_discover_cateMapper.findAllU_discover();
	}

	@Override
	public List<Map<String, Object>> findDiscoverFavoriteList(String user_id) {
		// TODO Auto-generated method stub
		return this.apiU_discover_cateMapper.findDiscoverFavoriteList(user_id);
	}

}
